namespace NewsReport.Entity.POCOModel
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("OneComment")]
    public partial class OneComment
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public OneComment()
        {
            MoreComment = new HashSet<MoreComment>();
        }

        [Key]
        public int OID { get; set; }

        [Required]
        [StringLength(100)]
        public string OContet { get; set; }

        public DateTime OTime { get; set; }

        public int? Usid { get; set; }

        public int? AID { get; set; }

        public virtual ArticleInfo ArticleInfo { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<MoreComment> MoreComment { get; set; }

        public virtual UserLogin UserLogin { get; set; }
    }
}
